<nz-modal [(nzVisible)]="dimissionIsVisible" nzTitle="离职人员列表" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" nzWidth="1000px">
  <nz-table #nzTable [nzData]="dimissionUserList" nzTableLayout="fixed" [nzScroll]="{ x: 'auto' }"
            [(nzPageIndex)]="pageHelper.currentPage" [nzFrontPagination]="false"
            (nzPageIndexChange)="nzPageIndexChange($event)"
            [(nzPageSize)]="pageHelper.pageSize" [nzTotal]="pageHelper.totalItems">
    <thead>
    <tr>
      <th>账号</th>
      <th>姓名</th>
      <th>机构</th>
      <th>性别</th>
      <th>手机号</th>
      <th>状态</th>
      <th>角色</th>
      <th>最近登录</th>
      <th>操作</th>
    </tr>
    </thead>

    <tbody>
    <tr *ngFor="let data of nzTable.data">
      <td>{{ data.username }}</td>
      <td>{{ data.name }}</td>
      <td>{{ data.agencyName}}</td>
      <td>
        <span *ngIf="data.sex == 1">男</span>
        <span *ngIf="data.sex == 2">女</span>
      </td>
      <td>{{ data.mobile }}</td>
      <td>
        <span *ngIf="data.status == '5'">离职</span>
      </td>
      <td>
        {{data.roleName}}
        <!--        <nz-tag *ngFor="let role of data.roles">{{role.label}}</nz-tag>-->
      </td>
      <td>
        {{data.lastLoginTime | date:"yyyy-MM-dd HH:mm:ss"}}
      </td>
      <td>
        <a (click)="delete(data.id)" *ngIf="userInfo['roleId'] == 1">删除</a>
      </td>
    </tr>
    </tbody>
  </nz-table>
</nz-modal>
